<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<base href="${basePath }" /> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>银行管理</title>
<#include "/views/ftl/base/manager_include.ftl">
</head>
<body style="background:#eef3f7;">
<#include "/views/ftl/base/head.ftl">
<div class="Main">
  <div class="dw">
<#include "/views/ftl/base/menu.ftl">
<#function a><#return "银行列表_List"></#function> 
<!--右边内容-->
<div class="Rightbox fl">
    <!--导航-->
    <div class="Bread_crbs clear">
      <div class="Bread_crbs_img fl"></div>
      <div class="Bread_crbs_text fl">
      	<a href="javascript:void(0);"><span>银行管理</span></a>
      	<span class="fnt_famy">></span>
      	<a href="javascript:void(0);"><span>新增银行</span></a>
      </div>
    </div>
       <!--各种表单设置-->
        <div class="bd_box">
         <form id="addAdForm" name="addAdForm" action="${basePath }manager/Bank_addBank" method="post">
          <div class="input_name">
            <span>名称：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="name" id="bankName" name="bankName" placeholder="请输入名称"  />
          </div><br>
          		<div class="input_name"><span>类别：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<select name="bankType" id="type" class="St" style="margin-left:0">					
						<option value="1">银行</option> 
				        <option value="2">交易平台</option> 
				</select>
			</div>
			 <div class="input_name">
            <span>排序：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="indexNo" name="indexNo" placeholder="请输入排序值" value="0" />
          </div><br>
			<div class="input_name">
			<span>Logo缩略图:</span>
    		    <input name="bankLogo" id="image1" value="" type="hidden">
        			<div id="divStatus" style="display:none;"></div>  
				<span id="spanButtonPlaceHolder"></span>
				<input id="btnCancel" type="button" value="Cancel All Uploads" onclick="swfu.cancelQueue();" style="display:none;margin-left: 2px; font-size: 8pt; height: 29px;" />
			     <!-- 图片上传 -->
        		
    		 <span>（请上传一张Logo图）</span> 
    		 <strong class="Bstyle AiYa" style="width: 115px;"></strong><a href="javascript:void(0);">
    		 <img id="image_img1" src="${basePath }/images/manager/up.jpg" height="98" width="138"></a>
    		 </div>
    		 <br><br>
         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <div class="button">
          <a href="javascript:insertAd();"><input type="button" name="button" value="保存" /></a>
        </div>
        </form>
   </div>
</div>
<script type="text/javascript" src="${basePath }js/swfupload/swfupload.js"></script>
<script type="text/javascript" src="${basePath }js/swfupload/swfupload.queue.js"></script>
<script type="text/javascript" src="${basePath }js/swfupload/fileprogress.js"></script>
<script type="text/javascript" src="${basePath }js/swfupload/handlers.js"></script> 
<script type="text/javascript" src="${basePath }js/swfupload/MySwfUpLoad.js"></script> 
<script type="text/javascript"> 
MySwfUpLoad("spanButtonPlaceHolder","btnCancel","image_img1","image1");  

function insertAd(){  
	if($("#bankName").val()==''){
		alert("银行名称不能为空");
		return;
	}
	
	if($("#image1").val()==''){
		alert("图片不能为空");
		return;
	}
	
	addAdForm.submit();
}
</script>


</body>
</html>

